package net.service;

/**
 *
 * @author Dustin
 */
public interface Protocol {
    public final static String PARAMETER = "<PARAMETER>";
    public final static String SEPARATOR = "<SEPARATOR>";

    public final static int UNKNOWN_COMMAND = -1;
    public final static int DISCONNECT = 0;
    public final static int CONNECT = 1;
    public final static int SERVER = 2;
    public final static int CLIENT = 3;
    public final static int INDEX = 4;
    public final static int MESSAGE = 5;

    public final static String COMMAND_PATTERN = "(\\d+)" + "(" + PARAMETER + ")" + "(.+" + "(" + SEPARATOR + ")?)*";
}
